package cn.edu.scau.cmi.mengzhuorong.ComprehensiveExper;

import cn.edu.scau.cmi.mengzhuorong.client.*;
import java.net.URL;
import java.util.ResourceBundle;
import javafx.fxml.Initializable;
import java.lang.Thread;
import javafx.fxml.FXML;
import javafx.scene.control.Button;
import javafx.scene.control.Label;
import javafx.scene.image.Image;
import javafx.scene.image.ImageView;

public class CompreExperController implements Initializable {
	@FXML
	private ImageView photo;
	@FXML
	private Button Btn1; 
	@FXML
	private Button Btn2_1, Btn2_2;
	@FXML
	private Button Btn3_1, Btn3_2, Btn3_3;
	@FXML
	private Button Btn4_1, Btn4_2;
	@FXML
	private Button Btn5_1, Btn5_2;
	@FXML
	private Button Btn6;
	@FXML
	private Button Btn7;
	
	@Override
	public void initialize(URL arg0, ResourceBundle arg1) {
		Image image = new Image("/cn/edu/scau/cmi/mengzhuorong/ComprehensiveExper/我的相片.jpg");
		photo.setImage(image);
	}
	
	public void Btn1_Click() {
		InterProgrammingClient th = new InterProgrammingClient();
		Thread thread = new Thread(th);
		thread.start();
	}
	public void Btn2_1_Click() {
		SingletonClient singleton = new SingletonClient();
	}
	public void Btn2_2_Click() {
		SingletonClient multiple = new SingletonClient();
	}
	public void Btn3_1_Click() {
		SimpleFactoryMethodClient th = new SimpleFactoryMethodClient();
		Thread thread = new Thread(th);
		thread.start();
	}
	public void Btn3_2_Click() {
		FactoryClient th = new FactoryClient();
		Thread thread = new Thread(th);
		thread.start();
	}
	public void Btn3_3_Click() {
		AbstractFactoryClient th = new AbstractFactoryClient();
		Thread thread = new Thread(th);
		thread.start();
	}
	public void Btn4_1_Click() {
		AdapterOfClassClient aocc = new AdapterOfClassClient();
	}
	public void Btn4_2_Click() {
		AdapterOfObjectClient aooc = new AdapterOfObjectClient();
	}
	public void Btn5_1_Click() {
		SafeCompositeClient th = new SafeCompositeClient();
		Thread thread = new Thread(th);
		thread.start();
	}
	public void Btn5_2_Click() {
		ConsistentCompositeClient th = new ConsistentCompositeClient();
		Thread thread = new Thread(th);
		thread.start();
	}
	public void Btn6_Click() {
		HibernateClient hibernate = new HibernateClient();
	}
	public void Btn7_Click() {
		Spring01Client th = new Spring01Client();
		Thread thread = new Thread(th);
		thread.start();
	}
}
